package com.boge.service;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.V;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import reactor.core.publisher.Flux;

/**
 * AiService 编程式和声明式的使用
 */
@AiService(
        wiringMode = AiServiceWiringMode.EXPLICIT,
        chatModel = "openAiChatModel",
        streamingChatModel = "openAiStreamingChatModel",
        //chatMemory = "chatMemory"
        chatMemoryProvider = "chatMemoryProvider",
        contentRetriever = "contentRetriever",
        tools = "weatherTools"
)
public interface ChatBotService {
    // message 是用户输入的内容
    public String sendMessage(String message);

    // @SystemMessage("你是波哥的贴心小助手，帮助波哥解决各种学习问题")
    // @SystemMessage(fromResource = "system.txt")
    //@UserMessage(value = "你是人民群众的好帮手，乐于助人{{it}}")
    //@UserMessage(value = "你是人民群众的好帮手，乐于助人{{msg}}")
    Flux<String> sendFluxMessage(@MemoryId String memoryId , @UserMessage String message);

    //public Flux<String> sendFluxMessage(String message);
}
